package common

const (
	TypeRequestRegister    = "RequestRegister"
	TypeRequestLogin       = "RequestLogin"
	TypeRequestUserList    = "RequestUserList"
	TypeRequestSayAll      = "RequestSayAll"
	TypeRequestSayOne      = "RequestSayOne"
	TypeRequestSayOneStart = "RequestSayOneStart"
	TypeRequestTest        = "RequestTest"
)

type Request struct {
	Type string
	Data string
}

type RequestRegister struct {
	UserId   int
	NickName string
	PassWord string
}

type RequestLogin struct {
	UserId   int
	PassWord string
}

type RequestUserList struct {
	UserId int
}

type RequestSayAll struct {
	UserId  int
	Content string
}

type RequestSayOne struct {
	UserId    int
	SheUserId int
}
type RequestSayOneStart struct {
	FromUserId int
	ToUserId   int
	Content    string
}

type RequestTest struct {
	Content string
}
